
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>部门借款申请单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">部门借款申请单</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline" id="form1">
       <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">编号：</label></td>
            <td><input type="text" class="form-control" name=""></td>
             <td style="min-width: 120px;width: 120px"><label for="" class="form-label">借款人：</label></td>
            <td>
              <div class="input-group">
                            <input id="area_id" type="text"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>
            </td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请状态：</label></td>
            <td>
              <select name="" id="" class="form-control select">
                        <option value="0">请选择</option>
                        <option value="1">已打回</option>
                        <option value="2">拆分人审批</option>
                        <option value="3">集团领导审批</option>
                        <option value="4">抄送</option>
                        <option value="5">已归档</option>
                        <option value="6">已作废</option>
                        <option value="7">已否决</option>
                         <option value="8">草稿</option>
                         <option value="9">部门经理审批</option>
              </select>
            </td>
    </tr>
        <tr>
           <td><label for="" class="form-label">支付状态：</label></td>
            <td>
             <select name="" id="" class="form-control select">
                <option value="0">请选择</option>
                <option value="1">已支付</option>
                <option value="2">未支付</option>
                <option value="3">不予支付</option>
              </select>
            </td>
          <td><label for="" class="form-label">借款日期：</label></td>
            <td>
            从
             <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="min-width:120px;width: 120px;display: inline-block;" name="">
           </div>
            <div class="form-group">
               到
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:120px;width: 120px;display: inline-block;" id="end" name="">
           </div>
            </td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">预计还款日期：</label></td>
            <td colspan="3">
            从
             <div class="form-group">
            <input type="text" id="start1" class="form-control layer-date " style="min-width:120px;width: 120px;display: inline-block;" name="">
           </div>
            <div class="form-group">
               到
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:120px;width: 120px;display: inline-block;" id="end1" name="">
           </div>
            </td>
          </tr>
          <tr>
            <td>借款单状态</td>
            <td>
              <select class="form-control select">
                <option value="0">请选择</option>
                <option value="1">未还款</option>
                <option value="2">已还款</option>
                <option value="3">未还清</option>
                <option value="4">不予支付</option>
                <option value="5">未支付</option>
              </select>
            </td>
            <td colspan="4"></td>
          </tr>
          <tr>
            <td colspan="6" class="text-center">
                <button class="btn btn-info btn-sm query" >查询</button>
           <button class="btn btn-info btn-sm emptyIf" type="reset" id="reset">清空查询条件</button>
            <button class="btn btn-info btn-sm emptyIf" type="button">导出Excel</button>
            </td>
          </tr>
      </table>
    
      <table class="table table-striped table-bordered table-hover bud_hei text-center">
         </tr>
           <tr class="info">
            <th class="text-center">NO.</th>
            <th class="text-center">编号</th>
            <th class="text-center trTotal2">借款人</th>
            <th class="text-center trTotal2">借款日期</th>
            <th class="text-center trTotal2">借款金额(元)</th>
            <th class="text-center">申请单状态</th>
            <th class="text-center">支付状态</th>
            <th class="text-center trTotal2">预计还款日期</th>
            <th class="text-center">借款单状态</th>
            <th class="text-center trTotal2">实际还款日期</th>
            <th class="text-center trTotal2">实际还款金额(元)</th>
            <th class="text-center">操作</th>
          </tr>
         	<tr>
				<td>1</td>
				<td><a class="J_menuItem" href="{:url('Other/borrowmdetailsp')}">201502230002</a></td>
       	<td>蔡启豪<span class="glyphicon glyphicon-ok duigou" title="已生效" aria-hidden="true"></span></td>
				<td>2017-11-11</td>
        <td class="text-right ObjectNum">2000</td>
        <td>已归档</td>
        <td>已支付</td>
				<td>2017-11-11</td>
        <td>未还款</td>
        <td></td>
        <td class="text-right ObjectNum">0</td>
				<td>查看流程图</td>
        </tr>
      </table>
       <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
    <script src="__STATIC__/layout/js/contabs_sub.js"></script>
      <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
      
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
            //日期范围限制
        var start1 = {
            elem: '#start1',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end1.min = datas; //开始日选好后，重置结束日的最小日期
                end1.start1 = datas //将结束日的初始值设定为开始日
            }
        };
        var end1 = {
            elem: '#end1',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start1.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
         laydate(start1);
        laydate(end1);
        $(document).ready(function(){
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
        })
         $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
     var jieshou = $("#area_id");
 sousuo(jieshou);
       function sousuo(id){
            id.bsSuggest({
            allowNoKeyword: false, //是否允许无关键字时请求数据
            multiWord: true, //以分隔符号分割的多关键字支持
            separator: ",", //多关键字支持时的分隔符，默认为空格
            getDataMethod: "url", //获取数据的方式，总是从 URL 获取
            url: 'http://unionsug.baidu.com/su?p=3&t=' + (new Date()).getTime() + '&wd=',
            /*优先从url ajax 请求 json 帮助数据，注意最后一个参数为关键字请求参数*/
            jsonp: 'cb',
            /*如果从 url 获取数据，并且需要跨域，则该参数必须设置*/
            processData: function (json) { // url 获取数据时，对数据的处理，作为 getData 的回调函数
                var i, len, data = {
                    value: []
                };
                if (!json || !json.s || json.s.length === 0) {
                    return false;
                }

                // console.log(json);
                len = json.s.length;

                jsonStr = "{'value':[";
                for (i = 0; i < len; i++) {
                    data.value.push({
                        word: json.s[i]
                    });
                }
                data.defaults = 'baidu';

                //字符串转化为 js 对象
                return data;
            }
        });

          }

    </script>
</body>

</html>
